package com.hwadee.teachingprocessmanagementsystem.service.base;

import com.hwadee.teachingprocessmanagementsystem.entity.Classroom;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

/**
 * 教室表(Classroom)表服务接口
 *
 * @author makejava
 * @since 2024-07-11 14:20:02
 */
public interface ClassroomService {

    /**
     * 通过ID查询单条数据
     *
     * @param classroomId 主键
     * @return 实例对象
     */
    Classroom queryById(Integer classroomId);

    /**
     * 新增数据
     *
     * @param classroom 实例对象
     * @return 实例对象
     */
    Classroom insert(Classroom classroom);

    /**
     * 修改数据
     *
     * @param classroom 实例对象
     * @return 实例对象
     */
    Classroom update(Classroom classroom);

    /**
     * 通过主键删除数据
     *
     * @param classroomId 主键
     * @return 是否成功
     */
    boolean deleteById(Integer classroomId);

    List<Classroom> queryAllByLimit(Classroom classroom);
}
